import React, { Component } from 'react'
import PureRenderMixin from 'react-addons-pure-render-mixin'

import SearchHeader from '../../components/SearchHeader'
import SearchList from './subpage/list'

class Search extends Component {
  constructor(props) {
    super(props);
    this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
  }

  render() {
    const params = this.props.params;
    return (
      <div>
        <SearchHeader params={params}/>
        <SearchList keyword={params.keyword} category={params.category} />
      </div>
    )
  }
}

export default Search
